#!/bin/bash
curl -X PUT "localhost:9200/archive" -d '
{
	"mappings": {
		"archive": {
			"properties": {
				"belongId": {
					"type": "string"
				},
				"content": {
					"type": "string",
					"store": true,
					"analyzer": "ik_max_word"
				},
				"id": {
					"type": "string",
					"index": "not_analyzed"
				},
				"path": {
					"type": "string",
					"store": true,
					"analyzer": "ik_max_word"
				},
				"title": {
					"type": "string",
					"store": true,
					"analyzer": "ik_max_word"
				},
				"type": {
					"type": "string",
					"index": "not_analyzed",
					"store": true
				}
			}
		}
	},
	"settings": {
		"index": {
			"refresh_interval": "-1",
			"number_of_shards": "1",
			"creation_date": "1604900208744",
			"store": {
				"type": "fs"
			},
			"number_of_replicas": "0",
			"uuid": "40xVKwkwQoO4WULy2c13nA",
			"version": {
				"created": "2040699"
			}
		}
	}
}'
